<template>
  <q-page padding class="page-default-padding">
    <q-toggle v-model="extra" label="Extra content" />
    <div v-if="extra">
      <div v-for="n in 5" :key="'a'+n">
        {{ n }} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
      </div>
      <q-select v-model="select" :options="selectOptions" outlined dense use-input style="width: 150px" />
      <div v-for="n in 45" :key="'b'+n">
        {{ n }} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
      </div>
    </div>

    <q-page-sticky position="top-left" :offset="[18, 58]">
      <q-btn round color="primary" icon="arrow_back" class="rotate-45" />
    </q-page-sticky>
    <q-page-sticky position="top-right" :offset="[18, 58]">
      <q-btn round color="primary" icon="arrow_upward" class="rotate-45" />
    </q-page-sticky>
    <q-page-sticky position="bottom-left" :offset="[18, 18]">
      <q-btn round color="primary" icon="arrow_forward" class="rotate-135" />
    </q-page-sticky>
    <q-page-sticky position="bottom-right" :offset="[18, 18]">
      <q-btn round color="primary" icon="arrow_forward" class="rotate-45" />
    </q-page-sticky>

    <q-page-sticky position="top" expand>
      <q-toolbar class="bg-white text-black">
        <q-btn flat round dense icon="map" @click="dialog = true" />
        <q-toolbar-title>Title</q-toolbar-title>
      </q-toolbar>
    </q-page-sticky>

    <q-page-scroller position="bottom" :scroll-offset="50">
      <q-btn fab icon="keyboard_arrow_up" color="red" />
    </q-page-scroller>

    <q-page-scroller position="top" reverse :scroll-offset="50">
      <q-btn fab icon="keyboard_arrow_down" color="red" />
    </q-page-scroller>

    <q-dialog v-model="dialog">
      <q-card>
        <q-card-section>
          hogehgoe
        </q-card-section>
      </q-card>
    </q-dialog>
  </q-page>
</template>

<style lang="sass">
.page-default-padding
  padding-top: calc(2.5rem + 50px)
</style>

<script>

export default {
  created () {
    this.selectOptions = [ 'Google', 'Facebook', 'Tesla' ]
  },
  data () {
    return {
      extra: true,
      dialog: false,
      select: null
    }
  }
}
</script>
